package com.web.music.model;

import java.util.ArrayList;
import java.util.List;

public class PersistentObjectRegistry {
	
	private static List<Class<? extends PersistentObject>> classes = null;
	
	public static List<Class<? extends PersistentObject>> getClasses(){
		if (classes == null){
			classes = new ArrayList<Class<? extends PersistentObject>>();
			classes.add(Track.class);
			classes.add(Album.class);
			classes.add(Artist.class);
			classes.add(Genre.class);
			classes.add(Person.class);
			classes.add(Track.class);
		}
		return classes;
	}	
}
